package org.triumphxx.logback;

import lombok.Data;

import javax.xml.bind.annotation.*;

/**
 * @author: wangyp
 * @Date: 2023/11/6
 * @Time: 10:00
 * @Desc: 正则表达式对象
 **/
@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "replace")
@XmlType(propOrder = {"regex","startLength","endLength","replacement"})
public class RegexReplacement {
    /**
     * 脱敏匹配规则
     */
    @XmlElement(name = "regex")
    private String  regex;
    /**
     * 开始长度
     */
    @XmlElement(name = "startLength")
    private int  startLength;
    /**
     * 结束长度
     */
    @XmlElement(name = "endLength")
    private int  endLength;
    /**
     * 替换正则
     */
    @XmlElement(name = "replacement")
    private String  replacement;
}
